import LayOut from '@/layout'

export default {
  path: '/employees',
  component: LayOut,
  name: 'employees',
  children: [{
    name: 'employees',
    path: '', // 子路由路径什么都不写会默认挂载到父路由路径上 否则/approvals/子路由路径
    component: () => import(/* webpackChunkName: "employees" */'@/views/employees'),
    meta: {
      title: '员工',
      icon: 'people'
    }
  }, {
    path: 'detail/:id', // id 后面加 ? 表示没有参数也可以调到该页面
    component: () => import('@/views/employees/detail.vue'),
    hidden: true, // 不显示在左侧当行栏中
    meta: {
      title: '员工详情页'
    }
  },
  {
    path: 'print/:id', // 二级默认路由
    component: () => import('@/views/employees/print'), // 按需加载
    hidden: true,
    meta: {
      title: '打印' // 标记当前路由规则的中文名称 后续在做左侧菜单时 使用
    }
  }
  ]
}
